package airBattle
{
import airBattle.IAirState;

/**
 * @author daichangxin
 */
public class AttackedState implements IAirState
{
	private var _context:AirContext;
	
	public function AttackedState(context:AirContext)
	{
		_context = context;
	}
	
	public function move() : void
	{
		trace("挨打中。。 切到移动");
		_context.setState(_context.getMoveState());
	}

	public function attack() : void
	{
		trace("挨打中。。切到攻击");
		_context.setState(_context.getAttackState());
	}

	public function attacked() : void
	{
		trace("挨打中又挨打，继续挨打。。。");
	}

	public function idle() : void
	{
		trace("挨打中，切到站立");
		_context.setState(_context.getIdleState());
	}

	public function death() : void
	{
		trace("挨打中，切到死亡");
		_context.setState(_context.getDeathState());
	}
}
}
